var {
  clickContent,
  randomUtils,
  existContent,
  fmtUtils,
  logUtils,
  clickUtils,
  swipeUtils,
} = require ('../../utils/index');
var {Action} = require ('../../base/index');
var ad = require ('../../ads/touTiao/index');

var aWatchAd = new Action ('看广告', {});
aWatchAd.exec = function () {
  var content = '看广告赚金币';
  if (clickContent (content)) {
    sleep (randomUtils.getRandom (2, 3, 1000));
    ad.startWatchAd (20);
  }
};

module.exports = aWatchAd;
